/* This program is free software. It comes without any warranty, to
 * the extent permitted by applicable law. You can redistribute it
 * and/or modify it under the terms of the Do What The Fuck You Want
 * To Public License, Version 2, as published by Sam Hocevar. See
 * http://sam.zoy.org/wtfpl/COPYING for more details. */ 
package de.rockon.fuzzy.controller.util;

/**
 * Zum speichern von Log-Nachrichten
 * 
 */
public class LogMessageClass {
	private String text;
	private String type;
	private int msgNumber;

	/**
	 * @param Nachrichtentyp
	 * @param Nachricht
	 */
	public LogMessageClass(String type, String message) {
		this.type = type;
		text = message;
	}

	/**
	 * @return - Nachrichtennummer
	 */
	public int getMsgNumber() {
		return msgNumber;
	}

	/**
	 * @return Nachricht
	 */
	public String getText() {
		return text;
	}

	/**
	 * @return Nachrichtentyp
	 */
	public String getType() {
		return type;
	}

	/**
	 * @param -
	 *            Nachrichtennummer
	 */
	public void setMsgNumber(int msgNumber) {
		this.msgNumber = msgNumber;
	}

	@Override
	public String toString() {
		return type + " " + text;
	}

}
